{"ast":null,"code":"import * as React from 'react';\nimport { renderColumnTitle } from '../util';\nfunction fillTitle(columns, columnTitleProps) {\n  return columns.map(function (column) {\n    var cloneColumn = Object.assign({}, column);\n    cloneColumn.title = renderColumnTitle(column.title, columnTitleProps);\n    if ('children' in cloneColumn) {\n      cloneColumn.children = fillTitle(cloneColumn.children, columnTitleProps);\n    }\n    return cloneColumn;\n  });\n}\nexport default function useTitleColumns(columnTitleProps) {\n  var filledColumns = React.useCallback(function (columns) {\n    return fillTitle(columns, columnTitleProps);\n  }, [columnTitleProps]);\n  return [filledColumns];\n}","map":{"version":3,"names":["React","renderColumnTitle","fillTitle","columns","columnTitleProps","map","column","cloneColumn","Object","assign","title","children","useTitleColumns","filledColumns","useCallback"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/table/hooks/useTitleColumns.js"],"sourcesContent":["import * as React from 'react';\nimport { renderColumnTitle } from '../util';\nfunction fillTitle(columns, columnTitleProps) {\n  return columns.map(column => {\n    const cloneColumn = Object.assign({}, column);\n    cloneColumn.title = renderColumnTitle(column.title, columnTitleProps);\n    if ('children' in cloneColumn) {\n      cloneColumn.children = fillTitle(cloneColumn.children, columnTitleProps);\n    }\n    return cloneColumn;\n  });\n}\nexport default function useTitleColumns(columnTitleProps) {\n  const filledColumns = React.useCallback(columns => fillTitle(columns, columnTitleProps), [columnTitleProps]);\n  return [filledColumns];\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,iBAAiB,QAAQ,SAAS;AAC3C,SAASC,SAAS,CAACC,OAAO,EAAEC,gBAAgB,EAAE;EAC5C,OAAOD,OAAO,CAACE,GAAG,CAAC,UAAAC,MAAM,EAAI;IAC3B,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEH,MAAM,CAAC;IAC7CC,WAAW,CAACG,KAAK,GAAGT,iBAAiB,CAACK,MAAM,CAACI,KAAK,EAAEN,gBAAgB,CAAC;IACrE,IAAI,UAAU,IAAIG,WAAW,EAAE;MAC7BA,WAAW,CAACI,QAAQ,GAAGT,SAAS,CAACK,WAAW,CAACI,QAAQ,EAAEP,gBAAgB,CAAC;IAC1E;IACA,OAAOG,WAAW;EACpB,CAAC,CAAC;AACJ;AACA,eAAe,SAASK,eAAe,CAACR,gBAAgB,EAAE;EACxD,IAAMS,aAAa,GAAGb,KAAK,CAACc,WAAW,CAAC,UAAAX,OAAO;IAAA,OAAID,SAAS,CAACC,OAAO,EAAEC,gBAAgB,CAAC;EAAA,GAAE,CAACA,gBAAgB,CAAC,CAAC;EAC5G,OAAO,CAACS,aAAa,CAAC;AACxB"},"metadata":{},"sourceType":"module"}